

package jetbrains.buildServer.server.rest.data.finder.builder;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
 * Maps string dimension value from the locator to T, useful for further processing.
 * Example:
 * "project:(id:SOME_PROJECT)" -> SProject
 */
public interface DimensionValueMapper<T> {
  @Nullable
  String getLocatorTypeDescription();

  @Nullable
  T get(@NotNull String dimensionValue);
}